<@master template="common/default" title="${title}">
<div class="detailsBox clearfix">
	<div class="openBox">
		<div>
			<form id="edit_form" action="/hr/query" method="POST">
				<span>查询结果 ,共${totalPage}页,当前第${currentPage}页      
					<span>                                                                                                                              
						<input name="page" type="text" style="width:45px;"placeholder="页数" >
						<input name="keyword" type="hidden" value="${page_conditon.keyword}">
						<input name="function" type="hidden" value="${page_conditon.function}">
						<input name="area" type="hidden" value="${page_conditon.area}">
						<input name="update_time" type="hidden" value="${page_conditon.update_time}">
						<input name="ageMin" width="1" type="hidden" value="${page_conditon.ageMin}">
						<input name="ageMax" width="1" type="hidden" value="${page_conditon.ageMax}">
						<input class="dlBtn" type="submit" value="跳转">
					</span>	
				</span>
			</from>
		</div>	
		<div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						<td>id</td>
						<td>年龄</td>
						<td>性别</td>
						<td>学历</td>
						<td>职能</td>
						<td>工作年限</td>
						<td>期望工作地区</td>
						<td>居住地区</td>
						<td>关键词</td>
						<td>简历更新时间</td>
						<td>快照</td>
					</tr>					
				</thead>
				<tbody>
					<#list results as result>
					<tr>
						<td>
							<span><a target="_blank" title="查看简历详情" href="${result.url}">${result.id}</a></span>
						</td>
						<td>${result.age}</td>
						<td>${result.sex}</td>
						<td>${result.education}</td>
						<td>${result.function}</td>
						<td>${result.work_age}</td>
						<td>${result.expect_address}</td>
						<td>${result.address}</td>
						<td>${result.keyword}</td>
						<td>${result.update_time}</td>
						<td><button class="fr edit btn_blue" onclick="showDetail(${result.id})">点击查看快照</button></td>
					</tr>
					<span id="${result.id}" style="display:none" value="${result.snapshot}"></span>
					</#list>
				</tbody>
			</table>
		</div>
	</div>
</div>
<script type="text/javascript">
	function showDetail(id) { 
	    var value = document.getElementById(id).attributes[2].value;
	    if(value == ""){
	    	alert("该简历暂未快照信息");
	    }else{
	    	alert(value);
	    }
	    	
	}
</script>
</@master>
